/*
 * Created on May 12, 2005
 *
 */
package org.mushroomdb.query.impl.condition;

import org.mushroomdb.query.Criteria;

/**
 * @author Matias
 *
 */
public class AndCondition implements Condition {
	private Criteria criteria;

	/**
	 * 
	 */
	public AndCondition(Criteria criteria) {
		this.criteria = criteria;
	}

	/**
	 * 
	 * @return
	 */
	public Criteria getCriteria() {
		return this.criteria;
	}
	
	/**
	 * toString
	 */
	public String toString() {
		return " AND (" + this.criteria.toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
	}
}
